package com.ruoyi.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 推广码绑定关系对象 jt_user_promotion_code_rel
 * 
 * @author Alan Zhang
 * @date 2025-03-29
 */
public class JtUserPromotionCodeRel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 推广关系id */
    private Long relId;

    /** 被绑定用户ID */
    @Excel(name = "被绑定用户ID")
    private Long userId;

    /** 推广码 */
    @Excel(name = "推广码")
    private String promotionCode;

    /** 所属用户ID */
    @Excel(name = "所属用户ID")
    private Long ownerUserId;

    public void setRelId(Long relId) 
    {
        this.relId = relId;
    }

    public Long getRelId() 
    {
        return relId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setPromotionCode(String promotionCode) 
    {
        this.promotionCode = promotionCode;
    }

    public String getPromotionCode() 
    {
        return promotionCode;
    }

    public void setOwnerUserId(Long ownerUserId) 
    {
        this.ownerUserId = ownerUserId;
    }

    public Long getOwnerUserId() 
    {
        return ownerUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("relId", getRelId())
            .append("userId", getUserId())
            .append("promotionCode", getPromotionCode())
            .append("ownerUserId", getOwnerUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
